package com.ksd.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ksd.common.annotation.Excel;
import com.ksd.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 批次管理对象 sys_batch
 * 
 * @author y.wu
 * @date 2025-01-23
 */
public class SysBatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    private String number;
    private String taskId;
    private Long synchId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 内容开始ID */
    @Excel(name = "内容开始ID")
    private String contentStart;

    /** 内容结束ID */
    @Excel(name = "内容结束ID")
    private String contentEnd;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    private String remake;

    /** 操作人 */
    @Excel(name = "操作人")
    private String userName;

    public Long getSynchId() {
        return synchId;
    }

    public void setSynchId(Long synchId) {
        this.synchId = synchId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setContentStart(String contentStart)
    {
        this.contentStart = contentStart;
    }

    public String getContentStart()
    {
        return contentStart;
    }
    public void setContentEnd(String contentEnd)
    {
        this.contentEnd = contentEnd;
    }

    public String getContentEnd()
    {
        return contentEnd;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setRemake(String remake)
    {
        this.remake = remake;
    }

    public String getRemake()
    {
        return remake;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("contentStart", getContentStart())
            .append("contentEnd", getContentEnd())
            .append("status", getStatus())
            .append("remake", getRemake())
            .append("userName", getUserName())
            .toString();
    }
}
